package com.baizhi.service;

import com.baizhi.entity.Category;
import com.github.pagehelper.PageInfo;
import org.w3c.dom.ls.LSException;

import java.util.List;

public interface CategoryService {
    PageInfo<Category> selectPage(Integer pageNum, Integer pageSize);
    void removeCategory(Integer id);
    List<Category> select();
    void addFirst(Category category);
    List<Category> selectLevel1();
    List<Category> selectLevel2();
    List<Category> selectChild();
    List<Category> selectByParentId(Integer id);
    Category selectCategory(Integer id);
}
